package com.bjsxt.common.util;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

import org.springframework.stereotype.Component;

@Component("dateUtil")
public class DateUtil {
      public Date strDateTime(String st) throws ParseException{
    	  SimpleDateFormat sdf = new SimpleDateFormat(ConstatFinalUtil.DATE_TIME_PATTERN);
    	  return sdf.parse(st);
      }
}
